/**
 *  @FileName: DateDemo.java
 *  @Last Modified Date: CharlW
 *  @Description: 使用Date对象的 toString()方法来打印当前日期和时间
 */
 
 import java.util.Date;

public class DateDemo {
	public static void main(String[] args) {
		// init Date object
		Date date = new Date();

		// use toString() method to show date and time
		System.out.println(date.toString());
	}
}